package com.wangx1n.boobey.service;

import com.wangx1n.boobey.dao.EnWordsMapper;
import com.wangx1n.boobey.entity.pk.EnWords;
import com.wangx1n.boobey.entity.pk.Problem;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wangxin
 * @create 2020-06-14 21:05
 */
@Service
public class EnWordService {
    @Resource
    EnWordsMapper enWordsMapper;
    /***
     * 数据库查询单词按照id寻找
     * @param id
     * @return
     */
    public EnWords selectWordById(int id){
        return enWordsMapper.selectByPrimaryKey(id);
    }
}
